<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'jianjie.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<SCRIPT src="js/jquery.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">			
			function doCheck(){
                        var picture = document.AddForm.picture.value;   // 荣誉名称
                        var ryInfo = document.AddForm.ryInfo.value;   // 荣誉信息
                        if(picture==""){
	                        alert("荣誉名称不能为空！");
	                        return false;
                        }
                        
                        if(ryInfo==""){
	                        alert("荣誉信息不能为空！");
	                        return false;
                        }
                         return true;
                        }
                        </script>
	</head>

	<body class="ContentBody">
		<form action="ry.do?method=addRy" method="post" enctype="multipart/form-data" name="AddForm">
			<div class="MainDiv">
				<table width="99%" border="0" cellpadding="0" cellspacing="0"
					class="CContent" bgcolor="#eefbfe">
					<tr>
						<th class="tablestyle_title">
							先进荣誉
						</th>
					</tr>
					<tr>
						<td class="CPanel">

							<table width="100%" border="0" cellpadding="0" cellspacing="1"	>
								<TR>
									<TD width="100%">
										<fieldset style="height: 100%;">
											<legend>
												荣誉
											</legend>
											<table border="0" cellpadding="2" cellspacing="1"
												style="width: 100%">

												<tr>

													<td width="27%" align="right" colspan="2">
														图片名称:
													</td>
													<td>
														<INPUT	TYPE="file" class="boxBorder" NAME="picture" size=20/>
													</td>
												</tr>

												<tr>
													<td nowrap align="right" height="120px">
														图片信息:
													</td>
													<td colspan="2">
														<textarea id="textarea" name="ryInfo" rows="4" cols="80"></textarea>
													</td>
												</tr>
											</table>
											<br />
										</fieldset>
									</TD>
								</TR>

							</TABLE>


						</td>
					</tr>

					<TR>
						<TD colspan="2" align="center" height="50px">
							<input type="submit" value="添加" class="button" onclick="return doCheck()"/>

						</TD>
					</TR>
				</TABLE>

			</div>
		</form>
	</body>
</html>
